import { _decorator } from 'cc';
import { UIComponent } from '../../../../Framework/Scripts/Managers/UIComponent';
import { SceneMgr } from '../../../../Framework/Scripts/Managers/SceneMgr';
const { ccclass, property } = _decorator;

@ccclass('GameHD2_Ctr')
export class GameHD2_Ctr extends UIComponent {
    protected onLoad(): void {
        this.InitUI();
    }

    start() {
        this.InitData();
    }

    protected onDestroy(): void {
        this.unRegisterEvent();
    }

    private InitUI(){
        this.registerEvent();

        this.AddButtonListener('btnBack',this,this.OnBtnCloseClick1);

    }

    private InitData(){
   
    }
    
    private registerEvent(){
        //  globalThis.gameMgr._eventTarget.on(EventMsgKes.loading,this.onLoadingPro,this);
    }

    private unRegisterEvent(){
        //  globalThis.gameMgr._eventTarget.off(EventMsgKes.loading,this.onLoadingPro,this);
    }

    public OnBtnCloseClick1(): void{
        SceneMgr.inst.showHall();
    }
}


